\hypertarget{class_core_1_1_image_history}{
\section{Core::ImageHistory Class Reference}
\label{class_core_1_1_image_history}\index{Core::ImageHistory@{Core::ImageHistory}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_core_1_1_image_history_ae78f2ce36eb77fb936d1a778e8d9a399}{AddImageToImageHistory} (\hyperlink{class_core_1_1_images_1_1_picture_box_image}{PictureBoxImage} image, string operation)
\item 
\hyperlink{class_core_1_1_images_1_1_picture_box_image}{PictureBoxImage} \hyperlink{class_core_1_1_image_history_a61c5c700c73a60c3c4bec95d530f6379}{Undo} ()
\item 
\hyperlink{class_core_1_1_images_1_1_picture_box_image}{PictureBoxImage} \hyperlink{class_core_1_1_image_history_abb49be956c8ba3a17e054078a09d1018}{Redo} ()
\item 
int \hyperlink{class_core_1_1_image_history_ae26bcfeed34a733dd372896a86bbc3d4}{GetNumberOfImagesInHistory} ()
\item 
int \hyperlink{class_core_1_1_image_history_a421e672ff9f20e10a03bf989cff4442e}{GetCurrentRevision} ()
\item 
bool \hyperlink{class_core_1_1_image_history_adefaa91513a3548c5a85d0b3247b7063}{RedoIsPossible} ()
\item 
bool \hyperlink{class_core_1_1_image_history_a45908055c40dd586e4f426b7eab3ee3e}{UndoIsPossible} ()
\item 
string \hyperlink{class_core_1_1_image_history_a2c9d2a7856c91909f83f3cb8ddf0bf25}{GetRedoToolTip} ()
\item 
string \hyperlink{class_core_1_1_image_history_af8a4f906b430aaaa9ec350ba4bc8d416}{GetUndoToolTip} ()
\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_core_1_1_image_history_abb81d12e0bcf3f1f0e79c797f38cc6f2}{
List$<$ \hyperlink{class_core_1_1_image_history_item}{ImageHistoryItem} $>$ {\bfseries ImageRevisions}}
\label{class_core_1_1_image_history_abb81d12e0bcf3f1f0e79c797f38cc6f2}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_core_1_1_image_history_af6092f3100e7204a1ef68095125b4b87}{
int {\bfseries \_\-currentRevision}}
\label{class_core_1_1_image_history_af6092f3100e7204a1ef68095125b4b87}

\end{DoxyCompactItemize}
\subsection*{Static Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{class_core_1_1_image_history_a741185b3c3ff7d4a57ee917e64c1f040}{
static Logger {\bfseries \_\-logger} = LogManager.GetCurrentClassLogger()}
\label{class_core_1_1_image_history_a741185b3c3ff7d4a57ee917e64c1f040}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Manages the list of ImageHistoryItems (to do undo and redo) as well as carry out the undo and redo operations.


\begin{DoxyParams}{Parameters}
\item[{\em ImageRevisions}]A list of \hyperlink{class_core_1_1_image_history_item}{ImageHistoryItem} objects (which contain an Image object and a string detailing the operation). \end{DoxyParams}


\subsection{Member Function Documentation}
\hypertarget{class_core_1_1_image_history_ae78f2ce36eb77fb936d1a778e8d9a399}{
\index{Core::ImageHistory@{Core::ImageHistory}!AddImageToImageHistory@{AddImageToImageHistory}}
\index{AddImageToImageHistory@{AddImageToImageHistory}!Core::ImageHistory@{Core::ImageHistory}}
\subsubsection[{AddImageToImageHistory}]{\setlength{\rightskip}{0pt plus 5cm}void Core::ImageHistory::AddImageToImageHistory ({\bf PictureBoxImage} {\em image}, \/  string {\em operation})\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_core_1_1_image_history_ae78f2ce36eb77fb936d1a778e8d9a399}
Appends the Image object and string passed in to the end of the ImageRevisions list. 
\begin{DoxyParams}{Parameters}
\item[{\em image}]The image to add to the list \item[{\em operation}]A string detailing what operation was just performed \end{DoxyParams}
\hypertarget{class_core_1_1_image_history_a421e672ff9f20e10a03bf989cff4442e}{
\index{Core::ImageHistory@{Core::ImageHistory}!GetCurrentRevision@{GetCurrentRevision}}
\index{GetCurrentRevision@{GetCurrentRevision}!Core::ImageHistory@{Core::ImageHistory}}
\subsubsection[{GetCurrentRevision}]{\setlength{\rightskip}{0pt plus 5cm}int Core::ImageHistory::GetCurrentRevision ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_core_1_1_image_history_a421e672ff9f20e10a03bf989cff4442e}
Returns the value of the iterator (essentially where we are in the ImageRevisions list). \begin{DoxyReturn}{Returns}
CurrentRevision The value of the iterator for the list. 
\end{DoxyReturn}
\hypertarget{class_core_1_1_image_history_ae26bcfeed34a733dd372896a86bbc3d4}{
\index{Core::ImageHistory@{Core::ImageHistory}!GetNumberOfImagesInHistory@{GetNumberOfImagesInHistory}}
\index{GetNumberOfImagesInHistory@{GetNumberOfImagesInHistory}!Core::ImageHistory@{Core::ImageHistory}}
\subsubsection[{GetNumberOfImagesInHistory}]{\setlength{\rightskip}{0pt plus 5cm}int Core::ImageHistory::GetNumberOfImagesInHistory ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_core_1_1_image_history_ae26bcfeed34a733dd372896a86bbc3d4}
Returns the number of \hyperlink{class_core_1_1_image_history_item}{ImageHistoryItem} objects on the ImageRevisions list. \begin{DoxyReturn}{Returns}
ImageRevisions.Count() The current number of items in the list. 
\end{DoxyReturn}
\hypertarget{class_core_1_1_image_history_a2c9d2a7856c91909f83f3cb8ddf0bf25}{
\index{Core::ImageHistory@{Core::ImageHistory}!GetRedoToolTip@{GetRedoToolTip}}
\index{GetRedoToolTip@{GetRedoToolTip}!Core::ImageHistory@{Core::ImageHistory}}
\subsubsection[{GetRedoToolTip}]{\setlength{\rightskip}{0pt plus 5cm}string Core::ImageHistory::GetRedoToolTip ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_core_1_1_image_history_a2c9d2a7856c91909f83f3cb8ddf0bf25}
Returns the tooltip for the next item in the history.

\begin{DoxyReturn}{Returns}
string The tooltip for the next item. 
\end{DoxyReturn}
\hypertarget{class_core_1_1_image_history_af8a4f906b430aaaa9ec350ba4bc8d416}{
\index{Core::ImageHistory@{Core::ImageHistory}!GetUndoToolTip@{GetUndoToolTip}}
\index{GetUndoToolTip@{GetUndoToolTip}!Core::ImageHistory@{Core::ImageHistory}}
\subsubsection[{GetUndoToolTip}]{\setlength{\rightskip}{0pt plus 5cm}string Core::ImageHistory::GetUndoToolTip ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_core_1_1_image_history_af8a4f906b430aaaa9ec350ba4bc8d416}
Returns the tooltip for the previous item in the history.

\begin{DoxyReturn}{Returns}
string The tooltip for the previous item. 
\end{DoxyReturn}
\hypertarget{class_core_1_1_image_history_abb49be956c8ba3a17e054078a09d1018}{
\index{Core::ImageHistory@{Core::ImageHistory}!Redo@{Redo}}
\index{Redo@{Redo}!Core::ImageHistory@{Core::ImageHistory}}
\subsubsection[{Redo}]{\setlength{\rightskip}{0pt plus 5cm}{\bf PictureBoxImage} Core::ImageHistory::Redo ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_core_1_1_image_history_abb49be956c8ba3a17e054078a09d1018}
Attempts a redo operation by checking if an object exists after the CurrentRevision iterator, then returning that \hyperlink{class_core_1_1_image_history_item}{ImageHistoryItem} node if it does exist. \hypertarget{class_core_1_1_image_history_adefaa91513a3548c5a85d0b3247b7063}{
\index{Core::ImageHistory@{Core::ImageHistory}!RedoIsPossible@{RedoIsPossible}}
\index{RedoIsPossible@{RedoIsPossible}!Core::ImageHistory@{Core::ImageHistory}}
\subsubsection[{RedoIsPossible}]{\setlength{\rightskip}{0pt plus 5cm}bool Core::ImageHistory::RedoIsPossible ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_core_1_1_image_history_adefaa91513a3548c5a85d0b3247b7063}
Returns whether or not there exists an image to redo in the history. \begin{DoxyReturn}{Returns}
bool Whether or not \hyperlink{class_core_1_1_image_history}{ImageHistory} can perform a redo 
\end{DoxyReturn}
\hypertarget{class_core_1_1_image_history_a61c5c700c73a60c3c4bec95d530f6379}{
\index{Core::ImageHistory@{Core::ImageHistory}!Undo@{Undo}}
\index{Undo@{Undo}!Core::ImageHistory@{Core::ImageHistory}}
\subsubsection[{Undo}]{\setlength{\rightskip}{0pt plus 5cm}{\bf PictureBoxImage} Core::ImageHistory::Undo ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_core_1_1_image_history_a61c5c700c73a60c3c4bec95d530f6379}
Attempts an undo operation by checking if an object exists before the CurrentRevision iterator, then returning that \hyperlink{class_core_1_1_image_history_item}{ImageHistoryItem} node if it does exist. \hypertarget{class_core_1_1_image_history_a45908055c40dd586e4f426b7eab3ee3e}{
\index{Core::ImageHistory@{Core::ImageHistory}!UndoIsPossible@{UndoIsPossible}}
\index{UndoIsPossible@{UndoIsPossible}!Core::ImageHistory@{Core::ImageHistory}}
\subsubsection[{UndoIsPossible}]{\setlength{\rightskip}{0pt plus 5cm}bool Core::ImageHistory::UndoIsPossible ()\hspace{0.3cm}{\ttfamily  \mbox{[}inline\mbox{]}}}}
\label{class_core_1_1_image_history_a45908055c40dd586e4f426b7eab3ee3e}
Returns whether or not there exists an image to undo to in the history.

\begin{DoxyReturn}{Returns}
bool Whether or not \hyperlink{class_core_1_1_image_history}{ImageHistory} can perform a undo. 
\end{DoxyReturn}


The documentation for this class was generated from the following file:\begin{DoxyCompactItemize}
\item 
C:/Users/Andy/Documents/Visual Studio 2008/Projects/capstone2009/shopped/src/Core/ImageHistory.cs\end{DoxyCompactItemize}
